package com.example.springboot.service;

import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.springboot.common.ResultCode;
import com.example.springboot.common.config.JwtTokenUtils;
import com.example.springboot.domain.po.Account;
import com.example.springboot.domain.po.Message;
import com.example.springboot.domain.po.User;
import com.example.springboot.exception.CustomException;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @Author：伐柯梦姝
 * @Package：com.example.springboot.service
 * @Project：springboot
 * @name：MessageService
 * @Date：2025/3/4 22:45
 * @Filename：MessageService
 * @for:
 */
public interface MessageService extends IService<Message> {
    Message add(Message message);

    void delete(Integer id);

    Message findById(Integer id);

    List<Message> findAll();

    void setData(Message message);

    PageInfo<Message> findPage(Message search, Integer pageNum, Integer pageSize);

    List<Message> findByCondition(Message search, Account currentUser);

}
